they can no longer write to the client, so they abort and log an error.
waiting for the page to load. =A0
Good poin=
t. We are considering redesigning our home page (
..org">bikewise.org), bc it does take a while to load and users often ha=
ve another destination in mind. However, meantime, it's not really an e=
rror if the user clicks on a link before the page finishes loading. The pag=
e does display a "Loading ..." message. The problem is that our e=
rror logs are filling up with this non-error rendering them a bit useless.<=
/div>
=A0
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Usually, that =
means at least 30 seconds ot so during which the user sees nothing much hap=
pening and starts wondering if his click got lost, or if the server or appl=
ication is down. (People in airports get that way too, when their flight is=
delayed but nobody tells them anything).
The evident symptom is those logfile messages. =A0The not-so evident conseq=
uence however, is a bunch of users getting upset because in their view, the=
site is slow or doesn't work.
So, root of the problem : why is it taking so long ?
If there is a large javascript section in the page itself, it may help to s=
ee to it that this javascript is loaded only once, and cached by the browse=
r. (And that would also speed up your website in general).
If it is the javascript itself doing something that takes so long (without =
user feedback) that the user gets impatient, then maybe you should have a l=
ook at that javascript.
A good tool to study this kind of issue is a browser plugin like HttpFox (f=
or Firefox) or Fiddler2 (for IE). =A0These will show you exactly how the co=
nversation looks like, from the browser point of view. It will maybe also s=
how you that the same javascript monster is being requested over and over a=
gain, instead of being cached. =A0Or it may show you that the =A0browser is=
requesting icons, images, stylesheets that do not (or no longer) exist, an=
d that this is uselessly consuming your bandwidth.
Another last-hope counter-measure would be to at least display something to=
the user, asking them to be patient and wait until the page is loaded.
>
x #ccc solid;padding-left:1ex">
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Aug 4, 2010 at 7:34 PM, =A0<
com" target=3D"_blank">seasprocket@gmail.com> wrote:
x #ccc solid;padding-left:1ex">
Error logs are filling up with strange "File does not exist" erro=
rs and
code
x #ccc solid;padding-left:1ex">
is trapping Apache exception:
=A0 =A0 =A0 =A0 Apache2::RequestIO::print: (53) Software caused connection=
abort
These errors are repeatably caused by client breaking the connection
before
x #ccc solid;padding-left:1ex">
page has loaded (page loads slowly because of extensive javascript).
Is Apache misconfigured? Is my code failing to handle interrupt? Guidance
r>
greatly appreciated!
Server: Apache/2.2.15 (FreeBSD) mod_ssl/2.2.15 OpenSSL/0.9.8e DAV/2
mod_perl/2.0.4 Perl/v5.10.1
Framework: Catalyst
--
Bikewise:
http://www.=
bikewise.org